package com.whfc.fim.dao;

import com.whfc.fim.dto.FimAlgDeviceCheckRuleDTO;
import com.whfc.fim.entity.FimAlgDeviceCheckRule;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author : qzexing
 * @version : 1.0
 * @date : 2021-01-23 16:14
 */
@Repository
public interface FimAlgDeviceCheckRuleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FimAlgDeviceCheckRule record);

    int insertSelective(FimAlgDeviceCheckRule record);

    FimAlgDeviceCheckRule selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FimAlgDeviceCheckRule record);

    int updateByPrimaryKey(FimAlgDeviceCheckRule record);

    /**
     * 根据设备ID 查询配置信息
     *
     * @param algDeviceId 设备ID
     * @return 设备配置信息
     */
    List<FimAlgDeviceCheckRuleDTO> selectAlgDeviceId(@Param("algDeviceId") Integer algDeviceId);
}